package ThreadPool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author wang'ji'cheng
 * @date 2025/7/23
 */
public class ThreadPoolDemo5 {
    public static void main(String[] args) {

        ExecutorService pool = Executors.newFixedThreadPool(10);

        pool.submit(new Runnable1());

        pool.submit(new Runnable2());

        pool.shutdown();

    }
}
